package com.alex.cms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 投票结果表
 * </p>
 *
 * @author alex
 * @since 2019-09-16
 */
public class CmsVote implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文章ID
     */
    @TableField("article_id")
    private Integer articleId;

    /**
     * 投票用户
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 投票项（只支持单选）
     */
    @TableField("option1")
    private String option1;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getOption1() {
        return option1;
    }

    public void setOption1(String option1) {
        this.option1 = option1;
    }

    @Override
    public String toString() {
        return "CmsVote{" +
            "id=" + id +
            ", articleId=" + articleId +
            ", userId=" + userId +
            ", option1=" + option1 +
        "}";
    }
}
